<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>后台管理</title>



<link href="static/css/bass.css" rel="stylesheet" type="text/css">
<script src="static/js/jquery.js" type="text/javascript"></script>


</head>

<body>
<div class="pageHeader">
	<h3><i class="fa fa-table"></i> 回收站</h3>
    <div class="fr">
    	<a href="javascript:history.go(-1);location.reload();" class="btn">返回</a>
    </div>
</div>

<div class="pageAction">
	<div class="fl">
    	<a href="?dopost=add&tid=<?php echo $tid;?>" class="btn"><i class="fa fa-plus"></i> 添加</a>
        <a href="javascript:location.reload();" class="btn"><i class="fa fa-refresh"></i> 刷新</a> 
    </div>

    <div class="fr">
    
<form action="" method="" id="search_form">
    栏目分类：
	<select name="tid" id="search_tid">
    	<option value="0"  >----全部分类---</option>
        <?php echo typelistOption( $tid  ) ;?>
    </select>
    <input type="text" name="s"  class="input-medium" value="<?php echo $s ;?>" placeholder="查询关键字"/>
    <input type="submit" value="查询" class="btn"/>
</form>
<script>
$(function(){
	$('#search_tid').on('change',function(){
		$('#search_form').submit();
	});	
})
</script>    
        
    </div>

    
</div>

<?php
	//var_dump($sql);
?>
<form action="" method="post"  class="listForm">

<div class="mainList">
<div class="batchControl" style="display:none;"> 
        <button type="button" btnbatchupdate="batch_back" > <i class="fa fa-reply"></i> 批量撤销删除</button>
        &nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;
        <button type="button" btnbatchupdate="batch_del" > <i class="fa fa-close"></i> 批量回收站删除</button>  

</div>
<input type='hidden' name="url" value="<?php echo  $_SERVER['REQUEST_URI'];?>"/>
<table class="list_table_A"  border="1" cellspacing="0" cellpadding="0">
  <tr>
    <th align="left" width="50">
		<input type="checkbox" cbGroupControl='A'/>
        id
    </th>
    <th align="left">标题</th>
    <th align="left">分类</th>
    
    <th align="left" width="140">发布时间</th>
  
    
    <th align="left" width="200">操作</th>
  </tr>
<?php foreach( $list as $v ):?>
  <tr>
    <td>
        <input type="checkbox" cbGroup='A' name="id[<?php echo $v['id']?>]" value="<?php echo $v['id']?>"/>
    	<?php echo $v['id']?>
    </td>
    <td>
        <a href="?dopost=upt&id=<?php echo $v['id'];?>"><?php echo $v['title']?></a>
    </td>
    <td>
        <span title="<?php echo $v['tid']?>"  style="white-space:nowrap;"><?php echo $v['typename']?> &nbsp;<span>
    </td>
    <td>
        <?php echo date('Y-m-d H:i:s',$v['pubtime'])?>
    </td>
    
    <td>
        
    	
        <a href="?dopost=back&id=<?php echo $v['id'];?>" class="btn btn_back"  title="撤销删除"><i class="fa fa-reply"></i> 撤销</a>
        <a href="?dopost=del&id=<?php echo $v['id'];?>"  class="btn btn_del" title="彻底删除"><i class="fa fa-close"></i> 删除</a>
    </td>
  </tr>
<?php endforeach;?>
</table>

</div>
<div class="pages">
	<?php echo $page;?>
</div>
</form>


<!-- 插件 -->
<script src="static/lib/My97DatePicker/WdatePicker.js"></script>

<script src="static/lib/validate/jquery.validate.js"></script>
<script src="static/lib/validate/additional-methods.js"></script>

<link href="static/lib/jbox/Metro/jbox.css" rel="stylesheet"/>
<script src="static/lib/jbox/jquery.jBox.js"></script>

<link rel="stylesheet" href="static/kindeditor/themes/default/default.css" />
<script charset="utf-8" src="static/kindeditor/kindeditor.js"></script>
<script charset="utf-8" src="static/kindeditor/kindeditor-lrxin.js"></script>

<script src="static/js/lrxin-form.js"></script>
<script src="static/js/lrxin-list.js"></script>








</body>
</html>
